package com.xqboss.apps.dto.damaigou;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * <p>
 *     扣除用户积分
 * </p>
 * @author Trent
 * @date 2023/9/4
 */
@Data
@ApiModel
public class DeductUserIntegralDto {

    @ApiModelProperty("用户ID")
    @NotNull(message = "请输入用户ID")
    private String userId;

    @ApiModelProperty("订单号")
    @NotNull(message = "订单号不能为空")
    private String orderId;

    @ApiModelProperty("扣除积分数量")
    @Positive(message = "扣除积分数必须大于0")
    @NotNull(message = "扣除积分必须大于0")
    private BigDecimal amount;

    @ApiModelProperty("积分识别码")
    @NotNull(message = "积分识别码不能为空")
    private String integralCode;

}
